package com.li.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.li.client.entities.BookInfo;
import com.li.client.entities.User;

public interface DataServiceAsync {

	void getCurrentUser(AsyncCallback<User> callback);

	void getAllBookInfo(AsyncCallback<List<BookInfo>> callback);

	void borrowBook(String userId, String isbnCode, AsyncCallback<Boolean> callback);

	void getBookByISBN(String isbnCode, AsyncCallback<BookInfo> callback);

	void getUserByUserId(String userId, AsyncCallback<User> callback);

	void returnBook(Integer pkUserId, Integer pkBookId,
			AsyncCallback<Boolean> callback);

	void getBookInStock(String isbnCode, AsyncCallback<Integer> callback);

	void loginSystem(String loginId, String pwd, AsyncCallback<User> callback);
	
}
